package com.example.xpvideo.service;

import com.example.xpvideo.entity.PageResult;
import com.example.xpvideo.entity.ResponseResult;
import com.example.xpvideo.entity.req.PHPCommodityReq;
import com.example.xpvideo.entity.req.PhpCommodityAuditReq;
import com.example.xpvideo.entity.req.PhpTopGoodsReq;
import com.example.xpvideo.entity.req.UpdateReq;
import com.example.xpvideo.entity.res.PHPCommodityDetailRes;
import com.example.xpvideo.entity.res.PHPCommodityRes;
import com.example.xpvideo.exception.ErrorException;

import java.util.List;

public interface PhpGoodsService {
    ResponseResult<PageResult<List<PHPCommodityRes>>> list(PHPCommodityReq phpCommodityReq) throws ErrorException;
    ResponseResult<PHPCommodityDetailRes> detail(Integer goodsId) throws ErrorException;
    ResponseResult<Object> Audit(PhpCommodityAuditReq
                                         phpCommodityAuditReq) throws ErrorException;
    ResponseResult<Object> OffShelf(UpdateReq updateReq) throws ErrorException;
    ResponseResult<Object> top (PhpTopGoodsReq phpTopGoodsReq) throws ErrorException;
}
